<#--后台分页标签 pageUrl为固定参数-->
<#macro pagination_user div="default_list">
			<script type="text/javascript">	
				function jumppage(url, divId , select){
					 select=$(select);
					 var page = select.val();
					doAjax(url,page,divId);
					
				}
				function doAjax(pageUrl, page, divId) {
					var time = new Date().getTime();
				    $.ajax ({
				        url: pageUrl + "?time=" + time,
				        data:  {
				        			
				        			<#if paramMap?exists>
				        				<#list paramMap?keys as key>
				        					 <#if paramMap.get(key)?exists&&paramMap.get(key)?has_content>
				        					 	<#if paramMap.get(key)?is_collection>
				        					 	"${key!}": [
				        					 					<#list paramMap.get(key) as value>
				        					 						<#if value_has_next>
				        					 							<#if value?is_string>
				        					 							"${value}",
				        					 							<#else>
				        					 							"${value?c}",
				        					 							</#if>
				        					 						<#else>
				        					 							<#if value?is_string>
				        					 							"${value}"
				        					 							<#else>
				        					 							"${value?c}"
				        					 							</#if>
				        					 						</#if>
				        					 					</#list>
				        					 					],
				        					 	<#else>
				        					 	<#assign value=paramMap.get(key) />
				        					 	"${key!}":  <#if value?is_string>
	        					 							"${value}",
	        					 							<#else>
	        					 							"${value?c}",
	        					 							</#if>
												</#if>
				        					 </#if>
				        				</#list>
				        			</#if>
				        			"page" : page
				        		},
				        async: false,
				        type:'POST',
				        success: function(resp){
				        	document.getElementById(divId).innerHTML=subRespStr(""+resp,divId);
				    		//var d = $("#" + divId,resp);
				    		//$('#'+divId).empty();
				            //$('#'+divId).html(d.html());
				           
				        }
				    });  	
				}
				function refreshNowPage(){
					doAjax('${pageUrl!}', '${(pageInfo.pageNo)!}', '${div}')
				}
			</script>
			
				<#if (pageInfo.totalPages>=1)>
				<div id="fenye">
					<#if pageInfo.pageNo gt 1>
					<span onclick="doAjax('${pageUrl!}','${1}','${div}')"><a style="cursor:pointer;"  title="第一页">&lt;&lt;</a></span>
					<span onclick="doAjax('${pageUrl!}','${pageInfo.prePage}','${div}')"><a style="cursor:pointer;"  title="上一页">&lt</a></span>
					</#if>
					<#if pageInfo.totalPages lte 5>
						<#list 1..pageInfo.totalPages as p>
							<#if pageInfo.pageNo == p>
							<span class="alive"><a >${p}</a></span>
							<#else>
							<span onclick="doAjax('${pageUrl!}','${p}','${div}')"><a style="cursor:pointer;"  >${p}</a></span>
							</#if>
						</#list>
					<#else>
						<#if pageInfo.pageNo gt 2 && pageInfo.totalPages gt pageInfo.pageNo+2>
							<#if pageInfo.pageNo gt 3><span class="font12 vd_color9">......</span></#if>
							<#list pageInfo.pageNo-2..pageInfo.pageNo+2 as p>
								<#if pageInfo.pageNo == p>
								<span class="alive"><a >${p}</a></span>
								<#else>
								<span onclick="doAjax('${pageUrl!}','${p}','${div}')"><a style="cursor:pointer;"  >${p}</a></span>
								</#if>
							</#list>
							<span class="font12 vd_color9">......</span>
						<#elseif pageInfo.pageNo lte 2>
							<#list 1..5 as p>
								<#if pageInfo.pageNo == p>
								<span class="alive"><a >${p}</a></span>
								<#else>
								<span onclick="doAjax('${pageUrl!}','${p}','${div}')"><a style="cursor:pointer;"  >${p}</a></span>
								</#if>
							</#list>
							<span class="font12 vd_color9">......</span>
						<#elseif pageInfo.totalPages lte pageInfo.pageNo+2>
							<#if pageInfo.pageNo gt 3><span class="font12 vd_color9">......</span></#if>
							<#list pageInfo.totalPages-4..pageInfo.totalPages as p>
								<#if pageInfo.pageNo == p>
								<span class="alive"><a >${p}</a></span>
								<#else>
								<span onclick="doAjax('${pageUrl!}','${p}','${div}')"><a style="cursor:pointer;"  >${p}</a></span>
								</#if>
							</#list>
						<#else>
							<#list 1..pageInfo.totalPages as p>
								<#if pageInfo.pageNo == p>
								<span class="alive"><a >${p}</a></span>
								<#else>
								<span onclick="doAjax('${pageUrl!}','${p}','${div}')"><a style="cursor:pointer;"  >${p}</a></span>
								</#if>
							</#list>
						</#if>
					</#if>
					<#if pageInfo.pageNo lt pageInfo.totalPages>
					<span onclick="doAjax('${pageUrl!}','${pageInfo.nextPage}','${div}')"><a style="cursor:pointer;"  title="下一页">&gt</a></span>
					<span onclick="doAjax('${pageUrl!}','${pageInfo.totalPages}','${div}')"><a style="cursor:pointer;"  title="最后一页">&gt;&gt;</a></span>
					</#if>
				</div>
				</#if>
				<#--
				<#if (pageInfo.totalPages>=1)>
					
					<div class="tx_pagenation">
							<div class="turn">
								<#if pageInfo.pageNo gt 1>
								<a href="#${div}" title="首页" onclick="doAjax('${pageUrl!}','1','${div}')">
								<img src="${base}/images/i_turn_h.png" alt="" /></a>
								<a href="#${div}" title="上一页" onclick="doAjax('${pageUrl!}','${pageInfo.prePage}','${div}')">
								<img src="${base}/images/i_turn_p.png" alt="" /></a>
								<#else>	
								<a href="#${div}" title="首页" >
								<img src="${base}/images/i_turn_h.png" alt=""/></a>
								<a href="#${div}" title="上一页">
								<img src="${base}/images/i_turn_p.png" alt="" /></a>
								</#if>	
								<#if pageInfo.pageNo lt pageInfo.totalPages>					
								<a href="#${div}" title="下一页" onclick="doAjax('${pageUrl!}','${pageInfo.nextPage}','${div}')">
								<img src="${base}/images/i_turn_n.png" alt="" /></a>
								<a href="#${div}" title="尾页" onclick="doAjax('${pageUrl!}','${pageInfo.totalPages}','${div}')">
								<img src="${base}/images/i_turn_e.png" alt="" /></a>
								<#else>
								<a href="#${div}" title="下一页">
								<img src="${base}/images/i_turn_n.png" alt="" /></a>
								<a href="#${div}" title="尾页" >
								<img src="${base}/images/i_turn_e.png" alt="" /></a>
								</#if>
							</div>
							
							页次：${pageInfo.pageNo}/${pageInfo.totalPages}页 共有${pageInfo.totalCount}种数据 转到：
							<select id="jumppage" class="S" name="" onchange="jumppage('${pageUrl!}','${div}',this)">
								<#list 1..pageInfo.totalPages as p>
									<#if pageInfo.pageNo == p>
									<option selected="selected">${p}</option>
									<#else>
									<option >${p}</option>
									</#if>
								</#list>
								
							</select>
							页
					</div>
				</#if>
				-->
</#macro>